
package com.hlkj.pay.service.ad;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.framework.common.pojo.PageResult;
import com.hlkj.pay.dto.ad.query.AdStatisticsQueryDto;
import com.hlkj.pay.infrastructure.model.ad.AdStatisticsDO;

import java.util.List;
import java.util.Set;

/**
 * @author HlpayTeam
 * @date 2024/10/22 18:24
 */
public interface IAdStatisticsService {

    /**
     *
     * @param adInfoQueryDO
     * @return
     */
    PageResult<AdStatisticsDO> queryPage(AdStatisticsQueryDto adInfoQueryDO);

    /**
     *
     * @param adId
     * @param timeKeys
     * @return
     */
    List<AdStatisticsDO> queryList(Long adId, Set<String> timeKeys);
    /**
     *
     * @param adId
     * @param timeKey
     * @return
     */
    AdStatisticsDO queryOne(Long adId, String timeKey);

    /**
     * 
     * @param adStatisticsDO
     */
    void updateAdStatistics(AdStatisticsDO adStatisticsDO);

    /**
     * 
     * @param adStatisticsDO
     */
    AdStatisticsDO addAdStatistics(AdStatisticsDO adStatisticsDO);
}
